Grace mode
Varnishでstale-while-revalidateをする機能
docs
#WIP
Cache-Control: stale-while-revalidateをVLCで書いているだけ
以下は等価
code:vcl
sub vcl_backend_response {
set beresp.ttl = 5s;
set beresp.grace = 3600s;
}
code:response
Cache-Control: max-age=5, stale-while-revalidate=3600
#??
beresp.keepの存在意義がよくわからん
http://varnish-cache.org/docs/7.1/users-guide/vcl-grace.html
/mrsekut-book-4297119250/731
keepは、Cache-Control: must-revalidateのようなものらしい
Varnish Grace Modeで非同期にキャッシュを更新する - LCL Engineers' Blog
https://www.varnish-software.com/developers/tutorials/example-vcl-template/#15-setting-grace-mode